//
//  NSObject+LoadingMessage.m
//  NineteenBook
//
//  Created by xhkj on 2021/8/11.
//  Copyright © 2021 UP. All rights reserved.
//

#import "NSObject+LoadingMessage.h"

@implementation NSObject (LoadingMessage)


#pragma mark - showLoadingMessage
- (void)showLoading{
    [SVProgressHUD show];
}
- (void)hideLoading{
    [SVProgressHUD dismiss];
}
- (void)showLoading:(NSString*)message{
    [SVProgressHUD showWithStatus:message];
}
- (void)showMessage:(NSString *)string{
    [SVProgressHUD setBackgroundColor:HHColorHex(0x343434)];
    [SVProgressHUD setForegroundColor:HHColorHex(0xFFFFFF)];
    [SVProgressHUD setCornerRadius:5];
    [SVProgressHUD setFont:HHFont16];
    
    [SVProgressHUD setInfoImage:[UIImage imageNamed:@"wqwq"]];   //取不到就不显示图片了，不要[UIImage new]，new的话会有个空白
    [SVProgressHUD showInfoWithStatus:string];
    [SVProgressHUD dismissWithDelay:1.5];
}




@end
